#include "STC8XXX_Delay.h"

void Delay_ms(unsigned char ms)
{
	unsigned int i;
	do{
		i = MAIN_Fosc / 10000;
		while(--i);
	}while(--ms);
}

void Delay_us(unsigned char ms)
{
	unsigned int i;
	do{
		i = MAIN_Fosc / 1000000;
		while(--i);
	}while(--ms);
}
